Giter Club home page Giter Club logo

Comments (3)

LivingLimes avatar LivingLimes commented on June 3, 2024 1

Problem details

From what I can tell, parsing https urls will work. This issue arises from specifying the default port when using a special scheme such as https. If a valid port other than 443 is specified when using https, then this should function as expected. It follows that you will get a similar problem when trying to parse http://www.google.com:80.

We are currently using url crate, based on the url standard. The standard stipulates:

If url’s port is url’s scheme’s default port, then set url’s port to null.

which sounds like the issue we're facing here.

Next steps

I wouldn't call this a bug and I do not think we need to update any documentation or code in Surreal as the url crate conforms to an existing standard. Users who have this problem can find this issue to work around it.

@LucasSovre @phughk

from surrealdb.

phughk avatar phughk commented on June 3, 2024 1

Great work @LivingLimes thank you!
servo/rust-url#214
As per the ticket, the solution would be to rely on port_or_known_default instead of port. So it is still a bug and that would be the solution. Thanks!

from surrealdb.

phughk avatar phughk commented on June 3, 2024

This is being worked on by @LivingLimes

from surrealdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.