Hi,

I have been having trouble reading a list of HTTP parameters with the
same name that may or may not exist. If I call S.params("nn") and "nn"
doesn't exist, it throws a NoSuchElementException: "key not found". I
was expecting an empty List.

The code for S.params is

def params(n: String): List[String] = request.map(_.params(n)).openOr
(Nil)

Shouldn't it be something like:

def params(n: String): List[String] = request.map(_.params.getOrElse
(n,Nil)).openOr(Nil)

Or am I doing something wrong?

Thanks,
Wilkins

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

Reply via email to