feature/Tweak Request Header Box

This commit is contained in:
Marko Milić 2023-05-15 08:49:38 +02:00
parent cd98f15aa9
commit e658e848a2
2 changed files with 4 additions and 4 deletions

View File

@ -477,10 +477,10 @@ WIP to add comments on resource docs. This code copied from Sofit.
val requestHeader = customRequestHeader.trim.isEmpty match {
case true => Nil
case false =>
customRequestHeader.split("::").map(_.trim).map {
customRequestHeader.split(":::").map(_.trim).map {
i =>
val key = i.split(":").toList.head
val value = i.split(":").toList.reverse.head
val key = i.split("::").toList.head
val value = i.split("::").toList.reverse.head
Header(key, value)
}.toList
}

View File

@ -385,7 +385,7 @@
<div name="example_request_header" id="example_request_header" style="display: block;">
<!-- It is populated at render (but it can be edited manually) -->
<input type="text" name="request_header_input" class="default-input" placeholder="Request Header (Header1:Value1::Header2:Value2)">
<input type="text" name="request_header_input" class="default-input" placeholder="Request Header (Header1::Value1:::Header2::Value2)">
</div>
<div name="example_request_body" id="example_request_body" style="display: block;">
<input name="example_request_body_input" class="default-input" placeholder="JSON body to POST or PUT">