=hco,str small cleanups
This commit is contained in:
parent
8511a3974d
commit
762f32dfeb
3 changed files with 3 additions and 4 deletions
|
|
@ -13,7 +13,8 @@ private[parser] trait AcceptHeader { this: Parser with CommonRules with CommonAc
|
|||
|
||||
// http://tools.ietf.org/html/rfc7231#section-5.3.2
|
||||
def accept = rule {
|
||||
zeroOrMore(`media-range-decl`).separatedBy(listSep) ~ EOI ~> (Accept(_: _*))
|
||||
|
||||
zeroOrMore(`media-range-decl`).separatedBy(listSep) ~ EOI ~> (Accept(_))
|
||||
}
|
||||
|
||||
def `media-range-decl` = rule {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ final case class DateTime private (year: Int, // the year
|
|||
def weekdayStr: String = DateTime.weekday(weekday)
|
||||
|
||||
/**
|
||||
* The day of the month as a 3 letter abbreviation:
|
||||
* The month as a 3 letter abbreviation:
|
||||
* `Jan`, `Feb`, `Mar`, `Apr`, `May`, `Jun`, `Jul`, `Aug`, `Sep`, `Oct`, `Nov` or `Dec`
|
||||
*/
|
||||
def monthStr: String = DateTime.month(month - 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue