mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
docfix/Add comments regarding request headers info box
This commit is contained in:
parent
8244c57f2a
commit
3da85c5ee2
@ -701,6 +701,9 @@ object OBPRequest extends MdcLoggable {
|
||||
|
||||
addAppAccessIfNecessary.foreach(header => request.setRequestProperty(header.key, header.value))
|
||||
|
||||
// Please note that this MUST be called before we set the body of our request
|
||||
// Otherwise it can fail due to IllegalStateException("Already connected")
|
||||
// In the end we cannot see info at Request Header's Box at API Explorer
|
||||
val requestHeaders = tryo {
|
||||
addAppAccessIfNecessary.map(header => (header.key, Set(header.value))) :::
|
||||
request.getRequestProperties().asScala.mapValues(_.asScala.toSet).toList
|
||||
|
||||
Loading…
Reference in New Issue
Block a user