You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "pgj (via GitHub)" <gi...@apache.org> on 2023/09/13 20:07:16 UTC
[GitHub] [couchdb] pgj commented on a diff in pull request #4758: Remove sensitive headers from the mochiweb request in pdict
pgj commented on code in PR #4758:
URL: https://github.com/apache/couchdb/pull/4758#discussion_r1325024698
##########
src/chttpd/src/chttpd_util.erl:
##########
@@ -121,7 +121,19 @@ get_db_info(DbName) ->
end.
mochiweb_client_req_set(ClientReq) ->
- put(?MOCHIWEB_CLIENT_REQ, ClientReq).
+ Method = mochiweb_request:get(method, ClientReq),
+ Socket = mochiweb_request:get(socket, ClientReq),
+ Path = mochiweb_request:get(raw_path, ClientReq),
+ Version = mochiweb_request:get(version, ClientReq),
+ Opts = mochiweb_request:get(opts, ClientReq),
+ Headers = mochiweb_request:get(headers, ClientReq),
+ % Remove any senstive info in case process dict gets dumped
Review Comment:
Typo: "sensitive"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org