Netflix reported slightly lower-than-expected earnings while revenue was in line with estimates Monday, thanks to robust growth in users. Shares rallied in extended hours trading.

The video-streaming company reported earnings of $1.15 earnings per share and revenue of $1.34 billion in the second quarter. Wall Street expected Netflix to report earnings of $1.16 a share on $1.34 billion in revenue, according to a consensus estimate from Thomson Reuters.