Skip to content

Commit

Permalink
Fix ServerBuilder::cors_max_age doc comment time unit (paritytech#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Feb 1, 2020
1 parent c20705c commit 93e4773
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ impl<M: jsonrpc::Metadata, S: jsonrpc::Middleware<M>> ServerBuilder<M, S> {

/// Configure CORS `AccessControlMaxAge` header returned.
///
/// Passing `Some(millis)` informs the client that the CORS preflight request is not necessary
/// for at least `millis` ms.
/// Informs the client that the CORS preflight request is not necessary for `cors_max_age` seconds.
/// Disabled by default.
pub fn cors_max_age<T: Into<Option<u32>>>(mut self, cors_max_age: T) -> Self {
self.cors_max_age = cors_max_age.into();
Expand Down

0 comments on commit 93e4773

Please sign in to comment.