Skip to content

Commit

Permalink
bug Always return status 201 for success
Browse files Browse the repository at this point in the history
Closes #259
  • Loading branch information
jrconlin committed Mar 10, 2021
1 parent a95b7b9 commit eefb384
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit eefb384

Please sign in to comment.