scalatra/scalatra — Issue #143: BasicAuthStrategy authorization parsing broken
Author: rwallace
Created: 2011-12-13 21:46:36+00:00
State: open

def parts = authorizationKey map { r.getHeader(_).split(" ", 2).toList } getOrElse Nil
def params = parts.tail.headOption

What happens when `authorizationKey` is `None`?

def params = Nil.tail.headOption

And things go BOOM!