Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Small bug in network library  (Read 3324 times)

0 Members and 1 Guest are viewing this topic.

msz

  • Newbie
  • *
  • Posts: 1
    • View Profile
Small bug in network library
« on: July 04, 2009, 05:44:14 pm »
Not a big thing. Method SetURI() checks if URI starts with slash, and inserts one if not. But there is possibility to create Request object using
Code: [Select]
sf::Http::Request req( sf::Http::Request::Get, "" );
In this case URI string is just copied to myURI member, without any checking.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Small bug in network library
« Reply #1 on: July 04, 2009, 05:51:09 pm »
Correct.

I'll fix this, thanks for your help :)
Laurent Gomila - SFML developer

 

anything