Closed PratyushChauhan closed 3 months ago
I noticed that upon typing Allow-Methods
it does not return Access-Control-Allow-Methods
. Finding a fix for this rn.
Added tests that are identical to the previous suggestion functions. However there are some failed test cases.
For example here, the Access-Control-Allow-Headers
pattern should only return one element but it returns 4. Currently working to pass this test case. This is most likely due to the large edit distance of 50.
Testing getFuzzyHeaderSuggestions function Testing using Access-Control-Allow-Headers [E]
Expected: ['Access-Control-Allow-Headers']
Actual: [
'Access-Control-Allow-Headers',
'Access-Control-Allow-Methods',
'Access-Control-Allow-Origin',
'Access-Control-Request-Headers'
]
It is currently not performing better than the existing solution. Also, the tests are failing. The purpose is to provide better results, so make sure you test it thoroughly for different scenarios and provide a short description in the PR next time describing where it is performing better than the existing implementation. Closing this PR.
Continued in pr #380
PR Description
This PR adds fuzzy logic while getting header suggestions. I have reviewed the previous PR and have used FuzzyOptions to filter out irrelevant results.
Related Issues
Checklist
main
branch before making this PRflutter test
) and all tests are passingAdded/updated tests?
We encourage you to add relevant test cases.