diff options
author | bors-servo <servo-ops@mozilla.com> | 2020-11-19 11:54:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 11:54:31 -0500 |
commit | 30347a49347acf6259e2b9e4ab644d52a5f92b6f (patch) | |
tree | c8eb207ecb03a8d0fa5e6bea954067bc9c962ebc /components/net/fetch/methods.rs | |
parent | 064655c9cdaa0dd8252e3196f72a081cc43f8e00 (diff) | |
parent | 9b31533728123aaa2e79b0b92e8b1d263cfc48b3 (diff) | |
download | servo-30347a49347acf6259e2b9e4ab644d52a5f92b6f.tar.gz servo-30347a49347acf6259e2b9e4ab644d52a5f92b6f.zip |
Auto merge of #27738 - ghostd:update-bad-ports, r=jdm
Update the "bad ports" list
https://github.com/whatwg/fetch/issues/1108
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/net/fetch/methods.rs')
-rw-r--r-- | components/net/fetch/methods.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index a6ae6b4b234..fd76d71ad83 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -953,11 +953,11 @@ fn is_network_scheme(scheme: &str) -> bool { /// <https://fetch.spec.whatwg.org/#bad-port> fn is_bad_port(port: u16) -> bool { - static BAD_PORTS: [u16; 67] = [ + static BAD_PORTS: [u16; 69] = [ 1, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 25, 37, 42, 43, 53, 77, 79, 87, 95, 101, 102, 103, 104, 109, 110, 111, 113, 115, 117, 119, 123, 135, 139, 143, 179, 389, 427, 465, 512, 513, 514, 515, 526, 530, 531, 532, 540, 548, 556, 563, 587, 601, 636, 993, 995, 2049, 3659, - 4045, 6000, 6665, 6666, 6667, 6668, 6669, 6697, + 4045, 5060, 5061, 6000, 6665, 6666, 6667, 6668, 6669, 6697, ]; BAD_PORTS.binary_search(&port).is_ok() |