Basically everything (ok, almost) in request.META is strings, so I guess it
would be pretty consistent if for some reason server port wasn't.

It's usually your job to normalize data that comes into your application
anyways.
Le 2 août 2011 23:04, "Roy Smith" <r...@panix.com> a écrit :
> I'm running django 1.3. If I access HttpRequest.META['SERVER_PORT'],
> I get back a string (i.e. "80"). I was expecting an integer. Is this
> a bug (in which case I'll open a ticket to fix it) or it it
> intentional that it's returning a string (in which case I'll open a
> ticket to document it better).
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to