Skip to content

Commit

Permalink
Merge pull request #260 from mozilla-services/bug/259-201
Browse files Browse the repository at this point in the history
bug Always return status 201 for success
  • Loading branch information
pjenvey authored Mar 11, 2021
2 parents a95b7b9 + 123f970 commit 272b6be
Show file tree
Hide file tree
Showing 2 changed files with 263 additions and 22 deletions.
2 changes: 1 addition & 1 deletion autoendpoint/src/routers/webpush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl WebPushRouter {
/// Update metrics and create a response for when a notification has been stored in the database
/// for future transmission.
fn make_stored_response(&self, notification: &Notification) -> RouterResponse {
self.make_response(notification, "Stored", StatusCode::ACCEPTED)
self.make_response(notification, "Stored", StatusCode::CREATED)
}

/// Update metrics and create a response after routing a notification
Expand Down
Loading

0 comments on commit 272b6be

Please sign in to comment.