question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why extra Request Methods generated?

See original GitHub issue

I just wonder why I have OPTIONS, HEAD, PATCH while I don’t have any match RequestMapping(method = RequestMethod. OPTIONS, HEAD, PATCH

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bnasslahsencommented, May 16, 2020

@amorenew,

By default, @RequestMapping(“/topics”), allows all the HTTP methods which explains the result you got. You should precise your HTTP methods: for example: @GetMapping(“/topics”) …

1reaction
bnasslahsencommented, May 15, 2020

@amorenew,

Can you provide with a sample code (HelloController) or Test that reproduces your behaviour?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting an OPTIONS request instead of a GET ...
According to MDN,. Preflighted requests. Unlike simple requests (discussed above), "preflighted" requests first send an HTTP OPTIONS request ...
Read more >
HTTP Request Methods – Get vs Put vs Post Explained with ...
We use POST to create a new resource. A POST request requires a body in which you define the data of the entity...
Read more >
[Chapter 17] 17.2 Client Requests
It is the most commonly used method by browsers to retrieve documents for viewing. The result of a GET request can be generated...
Read more >
Advanced Usage — Requests 2.28.1 documentation
A Session object has all the methods of the main Requests API. ... Second, a Response object is generated once Requests gets a...
Read more >
HTTP/1.1: HTTP Message
Certain buggy HTTP/1.0 client implementations generate extra CRLF's after a POST request. To restate what is explicitly forbidden by the BNF, an HTTP/1.1 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found