Url验证的response里面content-type错误
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 50/100
Research direction
Locate CardActionHandler.handle and inspect how the response content type is assigned. Compare Constants.CONTENT_TYPE with Constants.JSON_CONTENT_TYPE and verify that URL validation responses expose the JSON content type so the API gateway can parse the header without error.
Written by the indexing model from the issue text.
Description
发现一个小小的问题,url验证的逻辑返回的response header里面content-type是错误的:(key value都是”content-type")
影响:body内容正常,我们api网关层解析这个header时报错
CardActionHandler :: handle代码
eventResp.setContentType(Constants.CONTENT_TYPE);
// 应该是:
eventResp.setContentType(Constants.JSON_CONTENT_TYPE);
参考其他处地方调用:
- Dominant language
- Java
- Stars
- 311
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/oapi-sdk-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
larksuite/oapi-sdk-java#197 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
larksuite/oapi-sdk-java#196 ·
-
sdk提供的新增、更新人才接口代码和飞书招聘的接口不一致,导致接口调用失败,返回报错是类型转换失败Possibly taken @CharLilis claimed this 72 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
larksuite/oapi-sdk-java#191 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
larksuite/oapi-sdk-java#149 ·
-
接口响应类型错误Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
larksuite/oapi-sdk-java#79 ·
All issues in larksuite/oapi-sdk-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
commonmark/commonmark-java#460 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
1.21.1见幽匿感测体就崩溃Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Make branch and label autocomplete matching locale-independentPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
jenkinsci/gitlab-plugin#1950 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
commons-app/apps-android-commons#6984 ·
Maintainers usually reply within 2 days