Skip to content

Commit

Permalink
change content-type suggestion
Browse files Browse the repository at this point in the history
avoid confusion like this: #81

Using `{'Content-Type': 'application/json'}` will result in "400 Bad Request: invalid header name" response
  • Loading branch information
adamhurm authored Oct 4, 2022
1 parent 4235665 commit e4367f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/internal-api/code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<p class="font-semibold">Custom Header: </p><br>
<input
class="bg-white focus:outline-none focus:shadow-outline border border-gray-300 rounded-lg py-2 px-4 block w-full appearance-none leading-normal header"
type="text" placeholder="{ 'Content-Type': 'application/json' }" id="headers"><br><br>
type="text" placeholder="Content-Type: application/json" id="headers"><br><br>

<button
class="bg-transparent hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent rounded submit-button"
Expand Down Expand Up @@ -101,4 +101,4 @@

</body>

</html>
</html>

0 comments on commit e4367f9

Please sign in to comment.