Skip to content

Commit

Permalink
Merge pull request #193 from mmd-osm/patch/basicauthrealm
Browse files Browse the repository at this point in the history
Remove OAuth WWW-Authenticate header for better rails compatibility
  • Loading branch information
mmd-osm authored May 31, 2019
2 parents 05d8cec + 194cd73 commit 3e321f0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/process_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ void respond_401(const http::unauthorized &e, request &r) {
r.add_header("Content-Type", "text/plain; charset=utf-8");
// Header according to RFC 7617, section 2.1
r.add_header("WWW-Authenticate", R"(Basic realm="Web Password", charset="UTF-8")");
r.add_header("WWW-Authenticate", R"(OAuth realm="OpenStreetMap login required")");
r.add_header("Content-Length", message_size.str());
r.add_header("Cache-Control", "no-cache");

Expand Down

0 comments on commit 3e321f0

Please sign in to comment.