docfix/Add comments regarding request headers info box

This commit is contained in:
Marko Milić 2022-09-19 12:36:43 +02:00
parent 8244c57f2a
commit 3da85c5ee2

View File

@ -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