alibaba / alibaba/lightproxy

代理post请求,返回405错误

Open
#270 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.2k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

## 背景
使用lightproxy代理的时候,get请求没问题,post请求会返回405 Method Not Allowed错误

## 问题排查
发现response header中返回了allow: GET

请问问题产生的原因以及解法。

![image](https://user-images.githubusercontent.com/13847571/143543834-58c9b675-925a-426f-a9ff-d74437d4a074.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report in LightProxy using the described GET and POST requests, then inspect the response headers for the 405 status and Allow: GET value. Trace where proxy handling distinguishes the two methods; done means identifying the cause and documenting or correcting the POST behavior, with a reproducible verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.